System and method for efficient network reconfiguration in fat-trees

ABSTRACT

Systems and methods are provided for supporting efficient reconfiguration of an interconnection network having a pre-existing routing comprising. An exemplary method can provide, a plurality of switches, the plurality switches comprising at least one leaf switch, wherein each of the one or more switches comprise a plurality of ports, and a plurality of end nodes, wherein the plurality of end nodes are interconnected via the one or more switches. The method can detect, by a subnet manager, a reconfiguration triggering event. The method can compute, by the subnet manager, a new routing for the interconnection network, wherein the computing by the subnet manager of the new routing for the interconnection network takes into consideration the pre-existing routing and selects the new routing for the interconnection network that is closest to the pre-existing routing. The method can reconfigure the interconnection network according to the new routing.

CLAIM OF PRIORITY

This application is claims the benefit of priority to U.S. Provisional Patent Application entitled “SYSTEM AND METHOD FOR EFFICIENT NETWORK RECONFIGURATION IN FAT-TREES”, Application No. 62/136,337, filed on Mar. 20, 2015; U.S. Provisional Patent Application entitled “SYSTEM AND METHOD FOR EFFICIENT NETWORK RECONFIGURATION IN FAT-TREES”, Application No. 62/137,492, filed on Mar. 24, 2015; U.S. Provisional Patent Application entitled “SYSTEM AND METHOD FOR EFFICIENT NETWORK RECOGNITION IN FAT-TREES”, Application No. 62/163,847, filed on May 19, 2015; U.S. Provisional Patent Application entitled “SYSTEM AND METHOD FOR EFFICIENT NETWORK RECOGNITION IN FAT-TREES”, Application No. 62/201,476, filed on Aug. 5, 2015; and U.S. Provisional Patent Application entitled “SYSTEM AND METHOD FOR EFFICIENT NETWORK RECOGNITION IN FAT-TREES”, Application No. 62/261,137, filed on Nov. 30, 2015; each of which applications are herein incorporated by reference in their entirety

COPYRIGHT NOTICE

A portion of the disclosure of this patent document contains material which is subject to copyright protection. The copyright owner has no objection to the facsimile reproduction by anyone of the patent document or the patent disclosure, as it appears in the Patent and Trademark Office patent file or records, but otherwise reserves all copyright rights whatsoever.

FIELD OF INVENTION

The present invention is generally related to computer systems, and is particularly related to supporting efficient reconfiguration of interconnection networks.

BACKGROUND

As the size of the high-performance computing systems grows, the probability of the events requiring network reconfiguration increases. The reconfiguration of interconnection networks, like InfiniBand (IB) networks, often requires computation and distribution of a new set of routes in order to maintain connectivity, and to sustain performance. This is the general area that embodiments of the invention are intended to address.

In large systems, the probability of component failure is high. At the same time, with more network components, reconfiguration is often needed to ensure high utilization of available communication resources. For example, Exascale computing imposes unprecedented technical challenges, including realization of massive parallelism, resiliency, and sustained performance. The efficient management of such large systems is challenging, requiring frequent reconfigurations.

SUMMARY

The reconfiguration of interconnection networks, like InfiniBand (IB) networks, often requires computation and distribution of a new set of routes in order to maintain connectivity, and to sustain performance. Where reconfiguration is required, a routing mechanism computes a new set of routes without taking into account the existing network configuration. The configuration-oblivious re-routing results in substantial modifications to the existing routes, and the reconfiguration becomes more costly as it involves reconfiguring a large number of source-destination pairs.

Systems and methods are provided for supporting efficient reconfiguration of an interconnection network having a pre-existing routing. An exemplary method can provide, at one or more computers, including one or more microprocessors, a plurality of switches, the plurality switches comprising at least one leaf switch, wherein each of the one or more switches comprise a plurality of ports, and a plurality of end nodes, wherein the plurality of end nodes are interconnected via the one or more switches. The method can detect, by a subnet manager, a reconfiguration triggering event. The method can next compute, by the subnet manager, a new routing for the interconnection network, wherein the computing by the subnet manager of the new routing for the interconnection network takes into consideration the pre-existing routing and selects the new routing for the interconnection network that is closest to the pre-existing routing. Finally, the method can reconfigure the interconnection network according to the new routing.

BRIEF DESCRIPTION OF THE FIGURES

FIG. 1 shows an illustration of an InfiniBand environment, in accordance with an embodiment.

FIG. 2 shows an illustration of a tree topology in a network environment, accordance with an embodiment.

FIG. 3 depicts a block diagram of an InfiniBand subnet showing a linear forwarding table associated with a switch of the InfiniBand subnet, in accordance with an embodiment.

FIG. 4 depicts a block diagram of an updated LFT, in accordance with an embodiment.

FIGS. 5A-5C illustrate an exemplary minimal routing update on node shutdown, in accordance with an embodiment.

FIGS. 6A-6C illustrate an exemplary minimal routing update on link failure, in accordance with an embodiment.

FIG. 7 illustrates an exemplary fat-tree network showing path calculation and path assignment, in accordance with an embodiment.

FIG. 8 illustrates an exemplary fat-tree network showing path calculation and path assignment, in accordance with an embodiment.

FIG. 9 is a flow chart of an exemplary method for supporting efficient reconfiguration of an interconnection network having a pre-existing routing comprising, in accordance with an embodiment.

DETAILED DESCRIPTION

The invention is illustrated, by way of example and not by way of limitation, in the figures of the accompanying drawings in which like references indicate similar elements. It should be noted that references to “an” or “one” or “some” embodiment(s) in this disclosure are not necessarily to the same embodiment, and such references mean at least one. While specific implementations are discussed, it is understood that the specific implementations are provided for illustrative purposes only. A person skilled in the relevant art will recognize that other components and configurations may be used without departing from the scope and spirit of the invention.

Common reference numerals can be used to indicate like elements throughout the drawings and detailed description; therefore, reference numerals used in a figure may or may not be referenced in the detailed description specific to such figure if the element is described elsewhere.

Described herein are systems and methods that can support efficient reconfiguration of an interconnection network having a pre-existing routing.

The following description of the invention uses an InfiniBand™ (IB) network as an example for a high performance network. It will be apparent to those skilled in the art that other types of high performance networks can be used without limitation. The following description also uses the fat-tree topology as an example for a fabric topology. It will be apparent to those skilled in the art that other types of fabric topologies can be used without limitation.

In accordance with an embodiment of the invention, virtualization can be beneficial to efficient resource utilization and elastic resource allocation in cloud computing. Live migration makes it possible to optimize resource usage by moving virtual machines (VMs) between physical servers in an application transparent manner. Thus, virtualization can enable consolidation, on-demand provisioning of resources, and elasticity through live migration.

InfiniBand™

InfiniBand™ (IB) is an open standard lossless network technology developed by the InfiniBand™ Trade Association. The technology is based on a serial point-to-point full-duplex interconnect that offers high throughput and low latency communication, geared particularly towards high-performance computing (HPC) applications and datacenters.

The InfiniBand™ Architecture (IBA) supports a two-layer topological division. At the lower layer, IB networks are referred to as subnets, where a subnet can include a set of hosts interconnected using switches and point-to-point links. At the higher level, an IB fabric constitutes one or more subnets, which can be interconnected using routers.

Within a subnet, hosts can be connected using switches and point-to-point links. Additionally, there can be a master management entity, the subnet manager (SM), which resides on a designated subnet device in the subnet. The subnet manager is responsible for configuring, activating and maintaining the IB subnet. Additionally, the SM can be responsible for performing routing table calculations in an IB fabric. Here, for example, the routing of the IB network aims at providing correct routes with proper load balancing between all source and destination pairs in the local subnet.

Through the subnet management interface, the subnet manager exchanges control packets, which are referred to as subnet management packets (SMPs), with subnet management agents (SMAs). The SMAs reside on every IB subnet device. By using SMPs, the subnet manager is able to discover the fabric, configure end nodes and switches, and receive notifications from SMAs.

In accordance with an embodiment, inter- and intra-subnet routing in an IB network can be based on LFTs (linear forwarding tables) stored in the switches. The LFTs are calculated by the SM according to the routing mechanism in use. In a subnet, Host Channel Adapter (HCA) ports on the end nodes and the management port on switches are addressed using local identifiers (LIDs). Each entry in an LFT is indexed by a destination LID (DLID) and contains an output port. Only one entry per LID in the table is supported. When a packet arrives at a switch, its output port is determined by looking up the entry defined by the DLID in the forwarding table of the switch. The routing is deterministic as packets take the same path in the network between a given source-destination pair (LID pair).

Generally, there can be several SMs in a subnet. However, except for the master SM, all other SMs act in standby mode for fault tolerance. In a situation where a master subnet manager fails, however, a new master subnet manager is negotiated by the standby subnet managers. The master subnet manager also performs periodic sweeps of the subnet to detect any topology changes and reconfigure the network accordingly.

Furthermore, hosts and switches within a subnet can be addressed using local identifiers (LIDs), and a single subnet can be limited to 49151 unicast LIDs. Besides the LIDs, which are the local addresses that are valid within a subnet, each IB device can have a 64-bit global unique identifier (GUID). A GUID can be used to form a global identifier (GID), which is an IB layer three (L3) address.

The SM can calculate routing tables (i.e., the connections/routes between each pair of nodes within the subnet) at network initialization time. Furthermore, the routing tables can be updated whenever the topology changes, in order to ensure connectivity and optimal performance. During normal operations, the SM can perform periodic light sweeps of the network to check for topology changes. If a change is discovered during a light sweep or if a message (trap) signaling a network change is received by the SM, the SM can reconfigure the network according to the discovered changes.

For example, the SM can reconfigure the network when the network topology changes, such as when a link goes down, when a device is added, or when a link is removed. The reconfiguration steps can include the steps performed during the network initialization. Furthermore, the reconfigurations can have a local scope that is limited to the subnet, in which the network changes occurred. Also, the segmenting of a large fabric with routers may limit the reconfiguration scope.

In accordance with an embodiment, IB networks can support partitioning as a security mechanism to provide for isolation of logical groups of systems sharing a network fabric. Each HCA port on a node in the fabric can be a member of one or more partitions. Partition memberships are managed by a centralized partition manager, which can be part of the SM. The SM can configure partition membership information on each port as a table of 16-bit partition keys (P Keys). The SM can also configure switches and routers with the partition enforcement tables containing P Key information associated with the LIDs that are to be forwarded through the corresponding port. Additionally, in a general case, partition membership of a switch port can represent a union of all membership indirectly associated with LIDs routed via the port in an egress (towards the link) direction.

In accordance with an embodiment, for the communication between nodes, Queue Pairs (QPs) and End-to-End contexts (EECs) can be assigned to a particular partition, except for the management Queue Pairs (QP0 and QP1). The P Key information can then be added to every IB transport packet sent. When a packet arrives at an HCA port or a switch, its P Key value can be validated against a table configured by the SM. If an invalid P Key value is found, the packet is discarded immediately. In this way, communication is allowed only between ports sharing a partition.

An example InfiniBand fabric is shown in FIG. 1, which shows an illustration of an InfiniBand environment 100, in accordance with an embodiment. In the example shown in FIG. 1, nodes A-E, 101-105, use the InfiniBand fabric, 120, to communicate, via the respective host channel adapters 111-115. In accordance with an embodiment, the various nodes, e.g., nodes A-E, 101-105, can be represented by various physical devices. In accordance with an embodiment, the various nodes, e.g., nodes A-E, 101-105, can also be represented by various virtual devices, such as virtual machines.

Recent trends show an exponential increase in computational power over the last twenty years. The Exascale computing power (Exascale implies computational power capable of performing 10¹⁸ double-precision floating-point operations per second, i.e., exaFLOPS) is a next milestone to achieve for the high-performance computing (HPC) community. However, the Exascale computing imposes technical challenges, including realization of massive parallelism, resiliency, and sustained network performance. Because of this, routing plays a crucial role in HPC systems, and optimized routing and reconfiguration strategies are desirable to achieve and maintain optimal bandwidth and latency between nodes of an IB network/subnet.

In HPC clusters, the number of events requiring a network reconfiguration (i.e., reconfiguration triggering events), as well as the complexity of each reconfiguration, increases with growing system size. These reconfiguration events include component failures, node additions/removals, link errors etc. In addition to handling faults, reconfiguration could also be needed to maintain or improve network performance, and to satisfy runtime constraints. For instance, a routing may need an update to optimize for a changed traffic pattern, or to maintain Quality-of-Service (QOS) guarantees. Similarly, energy-saving techniques can rely on server consolidation, virtual machine migrations, and component shutdowns to save power. In all these events, the routing needs to be updated to cope with the change.

Dynamic network reconfiguration in statically routed in IB networks requires computation and distribution of a new set of routes to the switches, implemented by means of the linear forwarding tables (LFTs). The subnet manager (SM) employs a routing mechanism to compute new LFTs reflecting the updated topology information. In general, the routing mechanism calculates new paths without considering the existing routes in the network. Such configuration-oblivious routing calculation might result in substantial modifications to the existing paths between large numbers of source-destination (SD) pairs. As a large part of the network is affected by the routing update, the dynamic reconfiguration often requires costly operations to ensure a deadlock-free transition between the old and the new routing. The transition is carefully planned to make sure that the existing traffic flows are not affected. Moreover, the reconfiguration time increases proportionally to the number of path updates to the switches. For these reasons, dynamic reconfiguration in IB is mainly restricted to fault-tolerance, and performance-based reconfigurations are not well-supported.

Virtual Machines in InfiniBand

During the last decade, the prospect of virtualized High Performance Computing (HPC) environments has improved considerably as CPU overhead has been practically removed through hardware virtualization support; memory overhead has been significantly reduced by virtualizing the Memory Management Unit; storage overhead has been reduced by the use of fast SAN storages or distributed networked file systems; and network I/O overhead has been reduced by the use of device passthrough techniques like Single Root Input/Output Virtualization (SR-IOV). It is now possible for clouds to accommodate virtual HPC (vHPC) clusters using high performance interconnect solutions and deliver the necessary performance.

However, when coupled with lossless networks, such as InfiniBand (IB), certain cloud functionality, such as live migration of virtual machines (VMs), still remains an issue due to the complicated addressing and routing schemes used in these solutions. IB is an interconnection network technology offering high bandwidth and low latency, thus, is very well suited for HPC and other communication intensive workloads.

The traditional approach for connecting IB devices to VMs is by utilizing SR-IOV with direct assignment. However, to achieve live migration of VMs assigned with IB Host Channel Adapters (HCAs) using SR-IOV has proved to be challenging. Each IB connected node has three different addresses: LID, GUID, and GID. When a live migration happens, one or more of these addresses change. Other nodes communicating with the VM-in-migration can lose connectivity. When this happens, the lost connection can be attempted to be renewed by locating the virtual machine's new address to reconnect to by sending Subnet Administration (SA) path record queries to the IB Subnet Manager (SM).

IB uses three different types of addresses. A first type of address is the 16 bits Local Identifier (LID). At least one unique LID is assigned to each HCA port and each switch by the SM. The LIDs are used to route traffic within a subnet. Since the LID is 16 bits long, 65536 unique address combinations can be made, of which only 49151 (0x0001-0xBFFF) can be used as unicast addresses. Consequently, the number of available unicast addresses defines the maximum size of an IB subnet. A second type of address is the 64 bits Global Unique Identifier (GUID) assigned by the manufacturer to each device (e.g. HCAs and switches) and each HCA port. The SM may assign additional subnet unique GUIDs to an HCA port, which is useful when SR-IOV is used. A third type of address is the 128 bits Global Identifier (GID). The GID is a valid IPv6 unicast address, and at least one is assigned to each HCA port. The GID is formed by combining a globally unique 64 bits prefix assigned by the fabric administrator, and the GUID address of each HCA port.

Fat-Tree (FTree) Topologies and Routing

In accordance with an embodiment, some of the IB based HPC systems employ a fat-tree topology to take advantage of the useful properties fat-trees offer. These properties include full bisection-bandwidth and inherent fault-tolerance due to the availability of multiple paths between each source destination pair. The initial idea behind fat-trees was to employ fatter links between nodes, with more available bandwidth, towards the roots of the topology. The fatter links can help to avoid congestion in the upper-level switches and the bisection-bandwidth is maintained.

FIG. 2 shows an illustration of a tree topology in a network environment, in accordance with an embodiment. As shown in FIG. 2, one or more end nodes 201-204 can be connected in a network fabric 200. The network fabric 200 can be based on a fat-tree topology, which includes a plurality of leaf switches 211-214, and multiple spine switches or root switches 231-234. Additionally, the network fabric 200 can include one or more levels of intermediate switches, such as switches 221-224.

Also as shown in FIG. 2, each of the end nodes 201-204 can be a multi-homed node, i.e., a single node that is connected to two or more parts of the network fabric 200 through multiple ports. For example, the node 201 can include the ports H1 and H2, the node 202 can include the ports H3 and H4, the node 203 can include the ports H5 and H6, and the node 204 can include the ports H7 and H8.

Additionally, each switch can have multiple switch ports. For example, the root switch 231 can have the switch ports 1-2, the root switch 232 can have the switch ports 3-4, the root switch 233 can have the switch ports 5-6, and the root switch 234 can have the switch ports 7-8.

In accordance with an embodiment, the fat-tree routing mechanism is one of the most popular routing algorithms for IB based fat-tree topologies. The fat-tree routing mechanism is also implemented in the OFED (Open Fabric Enterprise Distribution—a standard software stack for building and deploying IB based applications) subnet manager, OpenSM.

The fat-tree routing mechanism aims to generate LFTs that evenly spread shortest-path routes across the links in the network fabric. The mechanism traverses the fabric in the indexing order and assigns target LIDs of the end nodes, and thus the corresponding routes, to each switch port. For the end nodes connected to the same leaf switch, the indexing order can depend on the switch port to which the end node is connected (i.e., port numbering sequence). For each port, the mechanism can maintain a port usage counter, and can use this port usage counter to select a least-used port each time a new route is added. If there are multiple ports connecting the same two switches, then these ports form a port group. In that case, the least loaded port of the least loaded port group is selected to add a new route.

The initial idea behind fat-trees was to employ fatter links, which is links with more available bandwidth between nodes, as the network moves toward the roots of the topology. The fatter links help to avoid congestion in the upper-level switches and the bisection-bandwidth is maintained. Different variations of fat-trees include k-ary-n-trees, Extended Generalized Fat-Trees (XGFTs), Parallel Ports Generalized Fat-Trees (PGFTs), and Real Life Fat-Trees (RLFTs).

A k-ary-n-tree is an n level fat-tree with k^(n) end nodes and n×k^(n−1) switches, each with 2k ports. Each switch has an equal number of up and down connections in the tree, except for the root switches. The XGFT extends k-ary-n-trees by allowing both different number of up and down connections for the switches, and different number of connections at each level in the tree. The PGFT definition further broadens XGFT topologies and permits multiple connections between switches. A large variety of topologies can be defined using XGFTs and PGFTs. However, for practical purposes, RLFT, which is a restricted version of PGFT, is introduced to define fat-trees commonly found in today's HPC clusters. A RLFT uses the same port-count switches at all levels in the fat-tree.

Despite the widespread use, some issues have been identified with fat-tree routing. For example, the fat-tree routing algorithm selects the current least-loaded port every time a new path is added to a switch LFT. However, this is not sufficient to maintain proper load-balancing in imbalanced fat-trees. A potential solution to this is using an upward counter along with a downward counter for port selection to achieve better load balancing in imbalanced fat-trees.

FIG. 3 depicts a block diagram of an InfiniBand subnet showing a linear forwarding table associated with a switch of the InfiniBand subnet, in accordance with an embodiment. In the depicted embodiment, the subnet 300 comprises a plurality of switches, e.g., switch 301, 302, 303, and 304, which can be interconnected. Linear forwarding table 310 is associated with switch 301, and can be used by switch 301 to direct traffic within the subnet. As shown in the figure, the linear forwarding table can be broken down in to blocks, and each LID can be forwarded with an output port. Output port 255 in the figure indicates that the path to such LID is non-existent.

Routing and Network Reconfiguration

In accordance with an embodiment, intra-subnet routing in IB is based on the LFTs stored in the switches. The LFTs are calculated by the SM using the routing algorithm in effect. In a subnet, each Host Channel Adapter (HCA) port on end nodes and all switches are addressed using local identifiers (LIDs). Each entry in an LFT represents a destination LID (DLID), and contains an output port. When a packet arrives at a switch, its output port is determined by looking up the entry corresponding to the DLID in its forwarding table. The routing is deterministic as packets take the same path between a given SD pair.

In accordance with an embodiment, after the subnet is configured as a result of the initial discovery process (heavy sweep), the SM performs periodic light sweeps of the subnet to detect any topology changes using SMP requests to the SMAs. If an SMA detects a change, it forwards a message to the SM with information about the change. As a part of the reconfiguration process, the SM calls the routing algorithm to regenerate LFTs for maintaining connectivity and performance.

In accordance with an embodiment, An LFT is divided in up to 768 blocks, each block representing 64 LIDs and the corresponding output ports. When a new set of routes has been calculated for the subnet, the SM updates the LFTs in the switches using a differential update mechanism. The update mechanism can utilize a block-by-block comparison between existing and new LFTs, to make sure that only modified blocks are sent to the switches.

FIG. 4 depicts a block diagram of an updated LFT, in accordance with an embodiment. As shown in the figure, LFT 310 is updated to LFT 310′, only ports for LIDs 0x0041 and 0x0080 were updated. This means that the LFT update 410, i.e., block 2 with two modified entries is sent to the switch in this example. Note that non-existing paths are marked as directed to port 255.

Minimal Routing Update

In accordance with an embodiment, a minimal routing update (MRU) technique uses the fact that, given a set of end nodes in a topology, multiple routing functions with the same performance and balancing characteristics can be generated. For traffic-oblivious routing in fat-trees, the routing function depends on the node ordering, and a different routing can be obtained by changing the node routing sequence. The MRU technique ensures that a minimum number of existing paths, between source-destination pairs, are modified when a network is reconfigured.

In accordance with an embodiment, node ordering can be changed due to both voluntary and involuntary reasons. For example, a node addition/removal or a routing optimization may cause nodes to be routed in a different sequence. The routing function executed after a change in node ordering might result in a different port selection, for the ends nodes at the switches, than the routing algorithm that ran before the change. Similarly, if a link goes down, the routing sequence for the switches at the affected fat-tree levels is modified, and so is the port selection at those switches. Even the source destination pairs that are not affected by the link failure per se, may still be affected by the change in the routed ports on the switches. Furthermore, node ordering can also be voluntary changed for performance-based reconfigurations, for instance, to keep network utilization optimal.

FIGS. 5A-5C illustrate an exemplary minimal routing update on node shutdown, in accordance with an embodiment. More specifically, FIG. 5A shows the downward port selection to a switch 520 connected to four end nodes, node A 401, node B 502, node C 503, and node D 504, with two up-going ports. The port selection is done according to the node order, which is depicted as left to right, (A, B, C, D). That is, the route to node A is directed through the left-most port, then the route to node B is directed to the rightmost port (in order to keep balance). The route to node C is then directed through the leftmost port, and the route to node D is then routed through the rightmost port, again, to keep the ports in balance.

In accordance with an embodiment, FIG. 5B depicts a situation when two of the nodes, specifically node A 501 and node D 504, are shut down (e.g., the nodes failed). In this situation, using a traditional routing mechanism that assigns ports based upon an index order, the node ordering, i.e., the ordering of nodes B and C, 502 and 503, is changed. The new node ordering affects the port selection for both the remaining active nodes B and C. This can be seen in that now the route to node B is through the leftmost port, and the route to node C is through the rightmost port.

In accordance with an embodiment, a MRU-based routing mechanism can preserve already existing assigned port selections for the end nodes on switches, as long as the assigned routes are still balanced on the available port groups. As shown in FIG. 5C, a system using a MRU mechanism requires no change in the port selection for the remaining active nodes (i.e., Nodes B and C). Even though MRU does not require any change in the existing port selections, both the routings, with and without MRU, are balanced and yield the same performance.

FIGS. 6A-6C illustrate an exemplary minimal routing update on a link failure, in accordance with an embodiment. As shown in FIG. 6A, three nodes, nodes A, B, and C, 601, 602, and 603, communicate through switch 620. There are also three links, link 631, link 632, and link 633, that carry the traffic towards nodes A, B, and C. The original routing, as shown in FIG. 6A, directs traffic to node A through link 631, traffic to node B through link 632, and traffic to node C through link 633.

However, the routing must be reconfigured when a link fails. As shown in FIG. 6B, when link 631 fails, a system utilizing a standard fat tree routing mechanism would reconfigure the subnet as shown. Here, starting with node A (the first in the indexing order, and going from left to right), traffic to node A would be routed through link 632. The traditional mechanism would then route traffic to node B through link 633, and finally, traffic to node C would be routed through link 632. As shown in FIG. 6B, using a standard routing mechanism, traffic to all three nodes would take a different route, which would involve three changes to the LFTs associated with the three upper switches connected to switch 620. (Switch 620 will not have a change in its LFT, but the switches from which the links 631, 632, and 633 are coming will get a change in the LFTs accordingly).

FIG. 6C depicts minimal routing update on link failure, in accordance with an embodiment. After link 631 fails, a minimal routing update mechanism can modify the LFTs such that only the routing for traffic to node A would change to link 632, while the routing for nodes B and C remain the same. Note that the traffic balancing remains the same despite there being two fewer link re-routes when using a MRU mechanism.

In accordance with an embodiment, a SlimUpdate fat-tree routing mechanism can employ the above described MRU technique to preserve the existing routes between SD pairs in a subnet. The mechanism can be completely contained in the subnet manager and does not require any global information other than the LFTs for the switches. The SlimUpdate routing mechanism can generate a routing table which is as similar to the already installed routing table as possible but still preserve the paths on the links, without affecting the route balancing across the topology.

In accordance with an embodiment, pseudo code for the SlimUpdate routing is shown here:

SlimUpdate Require: The fabric has been discovered Ensure: The LFTs are generated for the switches  1: set_max_counter_on_ports( )  2: for each sw ∈ leafSwitches[ ] do  3: LFT_(old) 

 get_lfts( )  4: Sort end nodes (lids in LFT_(old) come first)  5: for each en ∈ endNodes[ ] do  6: Get lid of en  7: Set LFT_(new)[lid] 

 en:hca_port on sw  8: RouteDowngoingByAscending( ) on sw  9: end for 10: end for

In accordance with an embodiment, the routing mechanism (variously referred to herein as “SlimUpdate routing mechanism” or “SlimUpdate”) is deterministic and the routes are calculated backwards, starting at the destination nodes. For the initial run, when the network does not have any routing set, the SlimUpdate can generate balanced LFTs spreading shortest-path routes across the links in the subnet. The SM distributes the LFTs to the switches, and keeps a copy to enable differential updates later. For subsequent runs when a reconfiguration is required (e.g., when a node goes offline or a link goes down), the routing mechanism can read the SM's LFTs copy, and generate a new routing according to MRU.

In accordance with an embodiment, before assigning routes, SlimUpdate can recursively move up the tree, starting at the leaf switches, and set up a maximum counters on all port groups in the downward direction. The counters are set using the number of end nodes and available up-going ports at each level (see line 1 of the above pseudo code for SlimUpdate). These counters are used to ensure that SlimUpdate does not compromise on the load-balancing when preserving existing paths.

In accordance with an embodiment, SlimUpdate works recursively to set up LFTs in all switches for the LIDs associated with each end node. For each leaf switch, the algorithm sorts end nodes connected to it in an order ensuring that the nodes which are already routed (i.e., already have LID in the existing LFT), are assigned paths before any newly discovered nodes (line 4 of the above pseudo code for SlimUpdate). The mechanism can then call RouteDowngoingByAscending (line 8 of the above pseudo code for SlimUpdate) and moves up to select a port at the next level to route the LID, as shown in the below pseudo code for RouteDowngoingByAscending:

RouteDowngoingByAscending Require: A switch sw, an end node lid and LFT_(old)  1: counter 

 sw.num_allocated_paths( )  2: current_port 

 sw.get_existing_path(lid, LFT_(old))  3: selected_port 

 current_port  4: g 

 current_port:group( )  5: mxc 

 g.get_max_counter( )  6: if counter ≥ mxc or selected_port is null then  7: Get least-loaded ports from sw.UpGroups[ ] as uplist[ ]  8: selected_port 

 upList.get_port_max_guid( )  9: end if 10: r_sw 

 selected_port.get_remote_switch( ) 11: Set LFT[lid] 

 selected_port on r_sw 12: increase port counter on selected_port 13: RouteUpgoingByDescending( ) on sw 14: RouteDowngoingByAscending( ) on r_sw

In accordance with an embodiment, if the maximum allocated paths do not exceed the maximum counter set for the port, the mechanism uses the current port (if any). However, if the maximum counter has already been reached (or the port is faulty), the least-loaded port from the available up-going groups is selected (see lines 7-8 of the above pseudo code for RouteDowngoingByAscending). As long as the load-balancing criteria are maintained and corresponding links are still functional, this technique ensures that the end-nodes take the same path in the tree as was prescribed by the old LFTs. Otherwise, the port selection is based on the least number of already assigned routes to make sure that the load is spread across the available paths.

In accordance with an embodiment, after the down-going port is set for a LID at a switch, SlimUpdate can assign upward ports for it on all the connected downward port groups (except for the one the path originated from) by descending down the tree calling RouteUpgoingByDescending, shown here by pseudo code:

RouteUpgoingByDescending Require: A switch sw, an end node lid and LFT_(old)  1: Get port groups from sw.DownGroups[ ] as dwnlist[ ]  2: for each g in dwnList[ ] do  3: current_port 

 g.get_existing_path(lid, LFT_(old))  4: counter 

 g.num_allocated_paths( )  5: selected port 

 current_port  6: mxc 

 g.get_max_counter( )  7: if counter ≥ mxc or selected_port is null then  8: Get least-loaded ports from g as p  9: selected_port 

 p 10: end if 11: r_sw 

 selected_port.get_remote_switch( ) 12: Set LFT[lid] 

 selected_port on r_sw 13: increase port counter on selected_port 14: RouteUpgoingByDescending( ) on r_sw 15: end for

In accordance with an embodiment, the selection of the up-going port is first based on the condition that the node has already been routed and it does not exceed the maximum counter set on the port. If the condition is not met, the least-loaded port in the port group is selected (see lines 8-9 of the above pseudo code for RouteUpgoingByDescending). After a port is selected, the mechanism increases the counter on the selected port. This process is then repeated by moving up to the next level in the tree until all LFTs are set.

In accordance with an embodiment, to make the routing better to cope with faults and other irregularities, the SlimUpdate employs a maximum counter on all port groups. This counter is updated to reflect the actual number of paths routable without affecting the balancing of the mechanism.

Embodiments of the systems and methods of the present invention utilize the minimal routing update mechanism (MRU) for re-routing IB based fat-tree topologies. The MRU employs techniques to preserve existing forwarding entries in switches to ensure a minimal routing update, without any routing performance penalty, and with low computational overhead. The methods and systems described herein show a substantial decrease in total route modifications when using MRU while achieving similar or even better performance on most test topologies and reconfiguration scenarios thereby greatly reducing reconfiguration overhead as compared to configuration-oblivious re-routing.

Metabase-Driven Network Reconfiguration

In accordance with an embodiment, a fast network reconfiguration mechanism based on a metabase-driven two-phase routing technique for fat-tree topologies can be provided. The method can enable SlimUpdate to quickly calculate a new set of LFTs in performance-based reconfiguration scenarios. However, in general, the metabase-driven network reconfiguration method can be used to complement any routing algorithm and topology.

In accordance with an embodiment, the routing is to be divided into two distinct phases: calculation of paths in the topology, and allocation of the calculated paths to the actual destinations. For performance based reconfigurations, when reconfiguration is triggered without a topology change, the path calculation phase can be eliminated. This can save on path calculation time, which in turn reduces overall network reconfiguration time in such scenarios. Moreover, once a set of calculated paths has been distributed to the switches, in principle, the re-routing phase can be executed in parallel at the switches further reducing time overhead. In addition, as the number of distinct paths is limited in a given fat-tree topology, the method reduces routing time for oversubscribed topologies. Similarly, systems and methods for metabase-driven network reconfiguration can also improve routing efficiency in virtualized subnets based on virtual switch (vSwitch) architecture.

In accordance with an embodiment, within a fat-tree topology, each compute node is connected to a single leaf-switch (multi-homed nodes connected to redundant leaf switches can be considered as distinct multiple nodes). Because of this, the path between any source-destination pair, as calculated by a fat-tree routing algorithm, is one of the available multiple leaf-switch to leaf-switch paths between corresponding leaf-switches. In exemplary systems and methods for two-phase destination-based routing scheme, paths towards leaf-switches are calculated using multipath routing in the first routing phase. The path calculation can be performed irrespective of the compute nodes connected to the leaf-switches. In the second phase, calculated paths are allocated to the compute nodes, and LFTs are generated or updated accordingly. In addition, the calculated multipath routing blueprint from the first phase, is stored in a metabase and used later for fast network reconfigurations. When a performance based re-routing is triggered, without a topology change, the routing algorithm can simply re-use the calculated paths and assign them to the compute nodes according to its path assignment logic. For instance, paths can be assigned to the compute nodes based on their current network profiles, or in correspondence with a given node permutation (e.g., a MPI (messaging passing interface) node ranks).

FIG. 7 illustrates an exemplary fat-tree network showing path calculation and path assignment, in accordance with an embodiment. In a first phase, a routing mechanism can calculate paths towards leaf-switch 720. As there are three root switches in the topology, e.g., switch 725, switch 726, and switch 727, the routing mechanism can calculate three distinct paths towards leaf switch 720, one from each root switch. For each of these paths, p1, p2 and p3, the routing mechanism can calculate a complete spanning tree in the topology rooted at the selected root switch. Each of the spanning tree, shown with differently dashed/solid lines in FIG. 7, gives one complete set of routes from the other two leaf switches, leaf switch 721 and leaf switch 722, to leaf switch 720.

In accordance with an embodiment, for fat-trees with single link between switches (non-PGFTs), once a reverse path until a root switch has been selected for a leaf-switch, building spanning tree is trivial as there exists only one downward path from a selected root switch to each of the leaf-switches. For fat-trees with parallel links between switches, spanning trees can be calculated recursively by going-down at each level when selecting the reverse path up to the root level. The path calculation is done without considering the compute nodes attached to the leaf switches. The number of the available distinct multipaths towards each leaf-switch depends on the topology.

In accordance with an embodiment, in a second phase, the calculated paths for the leaf switches are assigned to the compute nodes according to the routing logic. FIG. 8 illustrates an exemplary fat-tree network showing path calculation and path assignment, in accordance with an embodiment. As depicted in FIG. 8, the routing mechanism can assign the paths as follows: path p1 can be assigned to node A 801, path p2 can be assigned to node B 802, and path p3 can be assigned to node C 803. Because of this, node SRC 804, which is connected to leaf switch 722, can send traffic on the designated paths to reach corresponding compute nodes on leaf switch 720 (i.e., node A 801, node B 802, and/or node C 803). For example, a packet from node SRC 804 directed to node B 802 will take path p2 to reach node B, following the path leaf switch 722, to root switch 726, to leaf switch 720. At a later time, to change path towards node B to p1, the algorithm can alter the path assignment of node B from p2 to p1, without going through path re-calculation phase, and reinstall new LFTs. In current/standard fat-tree routing algorithms, such a change would need complete re-routing due to a change in the indexing order of the nodes.

Metabase-Drive Fat-Tree Routing and Reconfiguration

In accordance with an embodiment, the pseudo-code of a metabase-driven fat-tree routing and reconfiguration mechanism is here:

MetabaseDrivenRouting  1: if reconfiguration due to a topology change then  2:  Phase I: Calculate n leaf-switch multipaths  3:  Phase II: Call routing function using calculated paths  4:  Save calculated paths in a metabase  5: else {performance-based reconfiguration}  6:  // Phase I is not needed  7:  Load paths metabase  8:  Phase II: Call routing function using loaded paths  9: end if 10:  for each switch do 11:  Update LFTs 12:  end for

If the reconfiguration is requested by a subnet manager due to a topology change (e.g., a link goes down), the mechanism proceeds with calculating multipath spanning trees towards all leaf-switches, and proceeds with calling the routing function with the calculated paths as an input. The routing function uses already calculated paths and assigns them to the compute nodes. The paths are then stored in a metabase. For performance-based reconfigurations, the paths metabase is loaded, and the routing of compute nodes is done based on already calculated leaf-switch to leaf-switch multipaths. Once the new LFTs have been calculated, the mechanism proceeds with updating LFTs on each switch using differential update mechanism using SM as usual.

In accordance with an embodiment, the logic of allocating calculated paths to the actual compute node destinations is up to the routing mechanism. The path calculation phase, however, can be equipped with generating only a limited number of leaf-switch spanning tree paths (given by n in MetabaseDrivenRouting, line 2), or generate only those paths making link-disjoint spanning trees in the topology. Moreover, if the topology is oversubscribed having more compute nodes attached to each leaf-switch than the available different spanning trees in the fat-tree network, the routing mechanism can assign multiple compute nodes to the same paths.

Network Reconfiguration based on Node Ordering

In accordance with an embodiment, node ordering can play an important role in determining the paths for compute nodes in a fat-tree topology. When the node ordering is updated, a new set of LFTs is calculated by the routing mechanism. Statically-routed networks are prone to significant reduction in effective bandwidth when routing is not optimized for a given node permutation. Even if there is no change in the topology and network links, the performance of the running applications is affected if the routing is not reconfigured for the current node permutation. This is particularly important when only a subset of the total nodes participate in running an application. To achieve optimal bandwidth, it is important to configure routing according to the node order (also called MPI node rank) before running an application.

In accordance with an embodiment, the fat-tree routing mechanism routes nodes in the order of indexing, which depends on the leaf switch discovery order and the port number of the leaf switch to which the node is connected. However, it is not always practical to rank MPI processes according to the indexing order of the nodes in the fat tree routing. As a result, application performance becomes unpredictable. The SlimUpdate routing mechanism can preserve the node order according to the initial routing scheme, however, as it is designed for generalized reconfiguration scenarios including fault-tolerance, it takes more time to reconfigure the network.

In accordance with an embodiment, a modified SlimUpdate routing mechanism can be utilized for the performance-based reconfigurations to optimize routing for a given node ordering. The modified mechanism can use a metabase-driven routing scheme to quickly generate a new set of LFTs when the node ordering sequence is changed.

In accordance with an embodiment, the SlimUpdate routing mechanism for performance based reconfigurations requires that the leaf-switch to leaf-switch multipaths metabase has been created. It also requires an application node ordering (e.g., based on MPI node ranks), which is used to reassign calculated paths to the compute nodes, to optimize routing for the given node order.

The pseudo code of the metabase-driven SlimUpdate routing mechanism is given here:

SlimUpdate Routing for Node Order-Based Reconfiguration Require: Leaf-to-Leaf Multipaths metabase has been created Require: No topology change from the last run Require: Application node ordering Ensure: The LFTs are updated for the switches  1: metabase ← load_paths_metabase( )  2: for each leaf_sw ∈ leafSwitches[ ] do  3: new_node_order ← get_node_ordering(leaf_sw)  4: Sort compute nodes by new_node_order  5: for each cn ∈ computeNodes[ ] do  6: Get lid of cn  7: path id ← metabase.get_next_path(leaf_sw)  8: for each sw ∈ Switches[ ] do  9: if sw ≠ leaf_sw then 10: sw.LFT_(new)[lid] 

 path_id.get_sw_port(sw) 11: end if 12: end for 13: end for 14: end for 15: Update LFTs using differential update mechanism

In accordance with an embodiment, the mechanism first loads the calculated multipaths metabase (see line 1 of the above pseudo code for SlimUpdate Routing for Node Order-Based Reconfiguration). Once the metabase is loaded, for each leaf switch, the mechanism can sort compute nodes according to the new node order provided as an input to the routing mechanism (see line 4 of the above pseudo code for Slim Update Routing for Node Order-Based Reconfiguration). The mechanism can then proceed with iterating through all the compute nodes attached to the leaf switch. For each compute node, the mechanism can select a path id from the metabase based on the leaf-switch (see line 7 of the above pseudo code for SlimUpdate Routing for Node Order-Based Reconfiguration), which is stored in a sequential order. The path id is used to update LFTs of all the switches based on the port prescribed in the selected path (see lines 8-12 of the above pseudo code for SlimUpdate Routing for Node Order-Based Reconfiguration). When all new LFTs have been generated, the SM can use a differential update mechanism to update LFTs on all the switches.

FIG. 9 is a flow chart of an exemplary method for supporting efficient reconfiguration of an interconnection network having a pre-existing routing comprising, in accordance with an embodiment.

At step 910, the method can provide, at one or more computers, including one or more microprocessors, a plurality of switches, the plurality switches comprising at least one leaf switch, wherein each of the one or more switches comprise a plurality of ports, and a plurality of end nodes, wherein the plurality of end nodes are interconnected via the one or more switches.

At step 920, the method can detect, by a subnet manager, a reconfiguration triggering event.

At step 930, method can compute, by the subnet manager, a new routing for the interconnection network, wherein the computing by the subnet manager of the new routing for the interconnection network takes into consideration the pre-existing routing and selects the new routing for the interconnection network that is closest to the pre-existing routing.

At step 940, the method can reconfigure the interconnection network according to the new routing.

Many features of the present invention can be performed in, using, or with the assistance of hardware, software, firmware, or combinations thereof. Consequently, features of the present invention may be implemented using a processing system (e.g., including one or more processors).

Features of the present invention can be implemented in, using, or with the assistance of a computer program product which is a storage medium (media) or computer readable medium (media) having instructions stored thereon/in which can be used to program a processing system to perform any of the features presented herein. The storage medium can include, but is not limited to, any type of disk including floppy disks, optical discs, DVD, CD-ROMs, microdrive, and magneto-optical disks, ROMs, RAMs, EPROMs, EEPROMs, DRAMs, VRAMs, flash memory devices, magnetic or optical cards, nanosystems (including molecular memory ICs), or any type of media or device suitable for storing instructions and/or data.

Stored on any one of the machine readable medium (media), features of the present invention can be incorporated in software and/or firmware for controlling the hardware of a processing system, and for enabling a processing system to interact with other mechanism utilizing the results of the present invention. Such software or firmware may include, but is not limited to, application code, device drivers, operating systems and execution environments/containers.

Features of the invention may also be implemented in hardware using, for example, hardware components such as application specific integrated circuits (ASICs). Implementation of the hardware state machine so as to perform the functions described herein will be apparent to persons skilled in the relevant art.

Additionally, the present invention may be conveniently implemented using one or more conventional general purpose or specialized digital computer, computing device, machine, or microprocessor, including one or more processors, memory and/or computer readable storage media programmed according to the teachings of the present disclosure. Appropriate software coding can readily be prepared by skilled programmers based on the teachings of the present disclosure, as will be apparent to those skilled in the software art.

While various embodiments of the present invention have been described above, it should be understood that they have been presented by way of example, and not limitation. It will be apparent to persons skilled in the relevant art that various changes in form and detail can be made therein without departing from the spirit and scope of the invention.

The present invention has been described above with the aid of functional building blocks illustrating the performance of specified functions and relationships thereof. The boundaries of these functional building blocks have often been arbitrarily defined herein for the convenience of the description. Alternate boundaries can be defined so long as the specified functions and relationships thereof are appropriately performed. Any such alternate boundaries are thus within the scope and spirit of the invention.

The foregoing description of the present invention has been provided for the purposes of illustration and description. It is not intended to be exhaustive or to limit the invention to the precise forms disclosed. The breadth and scope of the present invention should not be limited by any of the above-described exemplary embodiments. Many modifications and variations will be apparent to the practitioner skilled in the art. The modifications and variations include any relevant combination of the disclosed features. The embodiments were chosen and described in order to best explain the principles of the invention and its practical application, thereby enabling others skilled in the art to understand the invention for various embodiments and with various modifications that are suited to the particular use contemplated. It is intended that the scope of the invention be defined by the following claims and their equivalents. 

What is claimed is:
 1. A method for supporting efficient reconfiguration of an interconnection network having a pre-existing routing comprising: providing, at one or more computers, including one or more microprocessors, a plurality of switches, the plurality switches comprising one or more leaf switches, wherein each of the one or more leaf switches comprise a plurality of ports, and a plurality of end nodes, wherein the plurality of end nodes are interconnected via the one or more leaf switches; detecting, by a subnet manager, a reconfiguration triggering event, the reconfiguration triggering event comprising at least one of a changed network traffic pattern and a drop in Quality-of-Service (QOS); computing, by the subnet manager, a new routing for the interconnection network, wherein the computing by the subnet manager of the new routing for the interconnection network takes into consideration the pre-existing routing and selects the new routing for the interconnection network that is closest to the pre-existing routing; and reconfiguring the interconnection network according to the new routing for the interconnection network; wherein the computing by the subnet manager of the new routing for the interconnection network comprises: preserving the pre-existing port selections for the plurality of end nodes, so long as said preserving the pre-existing port selections for the plurality of end nodes does not conflict with QOS requirements and so long as said preserving the pre-existing port selections for the plurality of end nodes does not conflict current traffic patterns.
 2. The method of claim 1, wherein the new routing for the interconnection network that is closest to the pre-existing routing comprises a route wherein a fewest number of linear forwarding table updates are performed.
 3. The method of claim 2, wherein the reconfiguration triggering event additionally comprises a topology change of the interconnection network.
 4. The method of claim 3, wherein the topology change of the interconnection network comprises at least one of node failure and link failure.
 5. The method of claim 4, wherein the computing by the subnet manager of the new routing for the interconnection network comprises: preserving pre-existing port selections for the plurality of end nodes, so long as said preserving pre-existing port selections for the plurality of end nodes maintains balance between routes on available port groups.
 6. The method of claim 5, wherein the computing by the subnet manager of the new routing for the interconnection network is deterministic and calculates the new routing backwards, starting at a destination node of the plurality of end nodes.
 7. The method of claim 5, wherein the balance between routes on available ports is maintained by using maximum counters.
 8. The method of claim 1, wherein the computing by the subnet manager of the new routing for the interconnection network comprises: preserving pre-existing port selections for the plurality of end nodes, so long as said preserving pre-existing port selections for the plurality of end nodes maintains balance between routes on available port groups.
 9. The method of claim 8, wherein the computing by the subnet manager of the new routing for the interconnection network is deterministic and calculates the new routing backwards, starting at a destination node of the plurality of end nodes.
 10. The method of claim 9, wherein the balance between routes on available ports is maintained by using maximum counters.
 11. The method of claim 1, wherein the interconnection network comprises an InfiniBand subnet.
 12. A system for supporting efficient reconfiguration of an interconnection network having a pre-existing routing comprising: one or more microprocessors; one or more computers; a plurality of switches, the plurality switches comprising at least one leaf switch, wherein each of the one or more switches comprise a plurality of ports; a plurality of end nodes, wherein the plurality of end nodes are interconnected via the one or more switches; and a subnet manager, wherein the subnet manager is configured to detect a reconfiguration triggering event, the reconfiguration triggering event comprising at least one of a changed network traffic pattern and a drop in Quality-of-Service (QOS); wherein the subnet manager computes a new routing for the interconnection network, wherein the computing by the subnet manager of the new routing for the interconnection network takes into consideration the pre-existing routing and selects the new routing for the interconnection network that is closest to the pre-existing routing; and wherein the interconnection network is reconfigured according to the new routing for the interconnection network; wherein the computing by the subnet manager of the new routing for the interconnection network comprises: preserving the pre-existing port selections for the plurality of end nodes, so long as said preserving the pre-existing port selections for the plurality of end nodes does not conflict with QOS requirements and so long as said preserving the pre-existing port selections for the plurality of end nodes does not conflict current traffic patterns.
 13. The system of claim 12, wherein the new routing for the interconnection network that is closest to the pre-existing routing comprises a route wherein a fewest number of linear forwarding table updates are performed.
 14. The system of claim 13, wherein the reconfiguration triggering event additionally comprises a topology change of the interconnection network.
 15. The system of claim 14, wherein the topology change of the interconnection network comprises at least one of node failure and link failure.
 16. The system of claim 15, wherein the computing by the subnet manager of the new routing for the interconnection network comprises: preserving pre-existing port selections for the plurality of end nodes, so long as said preserving pre-existing port selections for the plurality of end nodes maintains balance between routes on available port groups.
 17. The system of claim 16, wherein the computing by the subnet manager of the new routing for the interconnection network is deterministic and calculates the new routing backwards, starting at a destination node of the plurality of end nodes.
 18. The system of claim 16, wherein the balance between routes on available ports is maintained by using maximum counters.
 19. The system of claim 12, wherein the computing by the subnet manager of the new routing for the interconnection network comprises: preserving pre-existing port selections for the plurality of end nodes, so long as said preserving pre-existing port selections for the plurality of end nodes maintains balance between routes on available port groups.
 20. The system of claim 19, wherein the computing by the subnet manager of the new routing for the interconnection network is deterministic and calculates the new routing backwards, starting at a destination node of the plurality of end nodes.
 21. The system of claim 20, wherein the balance between routes on available ports is maintained by using maximum counters.
 22. The system of claim 12, wherein the interconnection network comprises an InfiniBand subnet.
 23. A non-transitory computer readable storage medium, including instructions stored thereon for supporting efficient reconfiguration of an interconnection network having a pre-existing routing, which when read and executed by one or more computers cause the one or more computers to perform steps comprising: providing, at one or more computers, including one or more microprocessors, a plurality of switches, the plurality switches comprising one or more leaf switches, wherein each of the one or more leaf switches comprise a plurality of ports, and a plurality of end nodes, wherein the plurality of end nodes are interconnected via the one or more leaf switches; detecting, by a subnet manager, a reconfiguration triggering event, the reconfiguration triggering event comprising at least one of a changed network traffic pattern and a drop in Quality-of-Service (QOS); computing, by the subnet manager, a new routing for the interconnection network, wherein the computing by the subnet manager of the new routing for the interconnection network takes into consideration the pre-existing routing and selects the new routing for the interconnection network that is closest to the pre-existing routing; and reconfiguring the interconnection network according to the new routing for the interconnection network; wherein the computing by the subnet manager of the new routing for the interconnection network comprises: preserving the pre-existing port selections for the plurality of end nodes, so long as said preserving the pre-existing port selections for the plurality of end nodes does not conflict with QOS requirements and so long as said preserving the pre-existing port selections for the plurality of end nodes does not conflict current traffic patterns.
 24. The non-transitory computer readable storage medium of claim 23, wherein the new routing for the interconnection network that is closest to the pre-existing routing comprises a route wherein a fewest number of linear forwarding table updates are performed.
 25. The non-transitory computer readable storage medium of claim 24, wherein the reconfiguration triggering event additionally comprises a topology change of the interconnection network.
 26. The non-transitory computer readable storage medium of claim 25, wherein the topology change of the interconnection network comprises at least one of node failure and link failure.
 27. The non-transitory computer readable storage medium of claim 26, wherein the computing by the subnet manager of the new routing for the interconnection network comprises: preserving pre-existing port selections for the plurality of end nodes, so long as said preserving pre-existing port selections for the plurality of end nodes maintains balance between routes on available port groups.
 28. The non-transitory computer readable storage medium of claim 27, wherein the computing by the subnet manager of the new routing for the interconnection network is deterministic and calculates the new routing backwards, starting at a destination node of the plurality of end nodes.
 29. The non-transitory computer readable storage medium of claim 27, wherein the balance between routes on available ports is maintained by using maximum counters.
 30. The non-transitory computer readable storage medium of claim 23, wherein the computing by the subnet manager of the new routing for the interconnection network comprises: preserving pre-existing port selections for the plurality of end nodes, so long as said preserving pre-existing port selections for the plurality of end nodes maintains balance between routes on available port groups.
 31. The non-transitory computer readable storage medium of claim 30, wherein the computing by the subnet manager of the new routing for the interconnection network is deterministic and calculates the new routing backwards, starting at a destination node of the plurality of end nodes.
 32. The non-transitory computer readable storage medium of claim 31, wherein the balance between routes on available ports is maintained by using maximum counters.
 33. The non-transitory computer readable storage medium of claim 23, wherein the interconnection network comprises an InfiniBand subnet. 